#include <iostream>
#include <algorithm>

using namespace std;

const int N = 1e5 + 10;
int a[N];
int n , c;

int main()
{
    cin >> n >> c;
    for(int i = 1;i <= n;i ++) cin >> a[i];

    int res = 0;
    for(int i = 2;i <= n;i ++)
    {
        if(a[i] - a[i - 1] <= c) res ++;
        else
        {
            res = 0;
        }
    }
    cout << res + 1 << endl;
    return 0;
}